/**
 * @des 2.给每一个按钮绑定上自己的事件
 */
 export const TableDropDownOperationFn = ( record: any, operation?: (a:any)=> void) => {
    const data = [
      {
        permissionKey: 'connectPerm',
        label: '测试按钮',
        onClick: operation.bind(null, { key: 'button', name: '测试按钮', data: record }),
      },
      {
        permissionKey: 'connect',
        label: '信息关联',
        onClick: operation.bind(null, { key: 'link', name: '信息关联', data: record }),
      },
    ]
    return data;
  };